<template>
  <div class="about">
    <!-- 导航栏（与首页保持一致） -->
    <nav class="navbar">
      <div class="nav-left">
        <router-link to="/" class="nav-link">首页</router-link>
        <router-link to="/about" class="nav-link">关于我们</router-link>
      </div>
      <div class="nav-right">
        <span class="user-info">欢迎，拉布布</span>
        <div class="user-avatar">
          <img src="https://ts2.tc.mm.bing.net/th/id/OIP-C.zqXwOxrqcaIPnu5VQ_t_lAHaNC?cb=12&rs=1&pid=ImgDetMain&o=7&rm=3" alt="用户头像">
        </div>
      </div>
    </nav>
    
    <!-- 页面标题 -->
    <header class="about-hero">
      <h1>关于我们</h1>
      <p>传承千年陶瓷工艺，专注优质陶瓷艺术品</p>
    </header>
    
    <!-- 公司简介 -->
    <section class="company-intro">
      <div class="container">
        <div class="intro-content">
          <h2>公司简介</h2>
          <p>我们是一家专注于陶瓷艺术创作与销售的企业，致力于传承和创新中国传统陶瓷工艺。自成立以来，我们坚持以精湛的工艺、优质的材料和创新的设计为核心，为广大客户提供高品质的陶瓷艺术品。</p>
          <p>多年来，我们与众多经验丰富的陶瓷工匠合作，将传统技艺与现代审美相结合，打造出既有文化底蕴又符合当代审美的陶瓷作品。我们的产品远销国内外，受到了众多收藏家与陶瓷爱好者的喜爱。</p>
        </div>
        <div class="intro-image">
          <img src="https://img95.699pic.com/photo/60056/0808.jpg_wh300.jpg!/fh/300/quality/90" alt="陶瓷工作室">
        </div>
      </div>
    </section>
    
    <!-- 工艺历史 -->
    <section class="craft-history">
      <div class="container">
        <h2>陶瓷工艺历史</h2>
        <div class="timeline">
          <div class="timeline-item">
            <div class="timeline-content">
              <h3>起源与传承</h3>
              <p>中国陶瓷工艺有着数千年的历史，我们秉承传统工艺精髓，坚持手工制作的独特价值。</p>
            </div>
          </div>
          <div class="timeline-item">
            <div class="timeline-content">
              <h3>材料精选</h3>
              <p>我们精心挑选优质陶土和釉料，确保每件作品都具有卓越的品质和质感。</p>
            </div>
          </div>
          <div class="timeline-item">
            <div class="timeline-content">
              <h3>工艺创新</h3>
              <p>在传承传统工艺的基础上，我们不断探索创新，融合现代设计理念，创造出独特的陶瓷艺术风格。</p>
            </div>
          </div>
        </div>
      </div>
    </section>
    
    <!-- 团队介绍 -->
    <section class="team-section">
      <div class="container">
        <h2>我们的团队</h2>
        <div class="team-grid">
          <div class="team-member" v-for="member in teamMembers" :key="member.id">
            <div class="member-photo">
              <img :src="member.photo" :alt="member.name">
            </div>
            <div class="member-info">
              <h3>{{ member.name }}</h3>
              <p class="member-role">{{ member.role }}</p>
              <p class="member-bio">{{ member.bio }}</p>
            </div>
          </div>
        </div>
      </div>
    </section>
    
    <!-- 联系方式 -->
    <section class="contact-section">
      <div class="container">
        <h2>联系我们</h2>
        <div class="contact-content">
          <div class="contact-info">
            <div class="contact-item">
              <h3>地址</h3>
              <p>浙江省景德镇市陶瓷艺术园区123号</p>
            </div>
            <div class="contact-item">
              <h3>电话</h3>
              <p>+86 123 4567 8910</p>
            </div>
            <div class="contact-item">
              <h3>邮箱</h3>
              <p>info@ceramics-art.com</p>
            </div>
          </div>
          <!-- <div class="contact-map">
            <img src="https://via.placeholder.com/600x300?text=我们的工作室地图" alt="工作室地图">
          </div> -->
        </div>
      </div>
    </section>
    
    <!-- 页脚 -->
    <footer class="footer">
      <div class="container">
        <p>&copy; 2023 精美陶瓷艺术品. 保留所有权利.</p>
      </div>
    </footer>
  </div>
</template>

<script setup>
// 团队成员数据
const teamMembers = [
  {
    id: 1,
    name: "喜羊羊",
    role: "陶瓷大师",
    bio: "从事陶瓷创作20余年，擅长青花瓷和釉下彩工艺",
    photo: "https://ts3.tc.mm.bing.net/th/id/OIP-C.s-9LJILFNA1brn8ePCnZJwHaEK?cb=12&rs=1&pid=ImgDetMain&o=7&rm=3"
  },
  {
    id: 2,
    name: "懒洋洋",
    role: "设计师",
    bio: "现代陶瓷艺术设计师，将传统工艺与现代美学完美融合",
    photo: "https://ts4.tc.mm.bing.net/th/id/OIP-C.jbwegM6QGx4IkQlmedyE2AHaEK?cb=12&rs=1&pid=ImgDetMain&o=7&rm=3"
  },
  {
    id: 3,
    name: "沸羊羊",
    role: "釉料专家",
    bio: "专注釉料研发15年，开发多种独特釉色配方",
    photo: "https://ts4.tc.mm.bing.net/th/id/OIP-C.iE3pQl6YxRCbHJ4Oq2nc9AHaEJ?cb=12&rs=1&pid=ImgDetMain&o=7&rm=3"
  }
];
</script>

<style scoped>
/* 导航栏样式 */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.1);
  position: sticky;
  top: 0;
  z-index: 100;
  margin-bottom: 20px;
}

.nav-left {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: #3498db;
}

.nav-link.router-link-exact-active {
  color: #3498db;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-info {
  color: #333;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 页面基本样式 */
.about {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 标题区域 */
.about-hero {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 10px;
  margin-bottom: 60px;
}

.about-hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.about-hero p {
  font-size: 1.2rem;
  opacity: 0.9;
}

/* 公司简介 */
.company-intro {
  margin-bottom: 80px;
}

.company-intro h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 40px;
  color: #333;
}

.intro-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.intro-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 20px;
}

.intro-image {
  text-align: center;
}

.intro-image img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* 工艺历史 */
.craft-history {
  background-color: #f8f9fa;
  padding: 80px 0;
  margin-bottom: 80px;
}

.craft-history h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 60px;
  color: #333;
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::after {
  content: '';
  position: absolute;
  width: 6px;
  background-color: #3498db;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -3px;
}

.timeline-item {
  padding: 10px 40px;
  position: relative;
  width: 50%;
  box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
  left: 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
}

.timeline-content {
  padding: 20px 30px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.timeline-content h3 {
  margin-top: 0;
  color: #3498db;
}

.timeline-content p {
  color: #666;
  line-height: 1.6;
}

/* 团队介绍 */
.team-section {
  margin-bottom: 80px;
}

.team-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 60px;
  color: #333;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.team-member {
  text-align: center;
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-name {
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #333;
}

.member-role {
  color: #3498db;
  margin-bottom: 15px;
  font-weight: 500;
}

.member-bio {
  color: #666;
  line-height: 1.6;
}

/* 联系方式 */
.contact-section {
  background-color: #f8f9fa;
  padding: 80px 0;
  margin-bottom: 40px;
}

.contact-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 60px;
  color: #333;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.contact-item {
  margin-bottom: 30px;
}

.contact-item h3 {
  color: #3498db;
  margin-bottom: 10px;
}

.contact-item p {
  color: #666;
  line-height: 1.6;
}

.contact-map {
  flex: 1;
  min-width: 300px;
  border-radius: 10px;
  overflow: hidden;
}

.contact-map img {
  width: 100%;
  height: auto;
}

/* 页脚 */
.footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 30px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .navbar {
    padding: 10px 15px;
  }
  
  .nav-left {
    gap: 15px;
  }
  
  .about-hero h1 {
    font-size: 2.2rem;
  }
  
  .about-hero p {
    font-size: 1rem;
  }
  
  .company-intro h2,
  .craft-history h2,
  .team-section h2,
  .contact-section h2 {
    font-size: 1.8rem;
  }
  
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0%;
  }
  
  .contact-content {
    flex-direction: column;
  }
}
</style>
